﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
  
namespace BLL
{
    public class BPhoneUser
    {
        private readonly DAL.DPhoneUser _dParent = new DAL.DPhoneUser();

        public bool UpdateInfoByUser(string strPhone, string strName)
        {
            return _dParent.UpdateInfoByUser(strPhone, strName);
        }

        public bool Exists(string phoneNumber)
        {
            return _dParent.Exists(phoneNumber);
        }

        public  bool Add(Model.PhoneUserInfo model)
        {
            return _dParent.Add(model);
        } 
         
        public  bool ClearImei(string phoneNumber)
        {
            return _dParent.ClearImei(phoneNumber);
        }
         
        public  bool Delete(int id)
        {
            return _dParent.Delete(id);
        }
        
        public  Model.PhoneUserInfo GetModel(int id)
        {
            return _dParent.GetModel(id);
        }
         
        public  DataSet GetList(string strWhere)
        {
            return _dParent.GetList(strWhere);
        }

        public Model.PhoneUserInfo GetModelByNumber(string phoneNumber)
        {
            return _dParent.GetModelByNumber(phoneNumber);
        }

        public bool UpdateWhenLogin(Model.PhoneUserInfo model)
        {
            return _dParent.UpdateWhenLogin(model);
        }
    }
}
